package cn.hanna.springcloud.service.impl;

import cn.hanna.springcloud.entities.Payment;
import cn.hanna.springcloud.mapper.PaymentMapper;
import cn.hanna.springcloud.service.PaymentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author smileha
 * @create 2021-10-16 13:27
 * @description
 */
@Service
public class PaymentServiceImpl implements PaymentService {

    @Autowired
    private PaymentMapper paymentMapper;

    @Override
    public int create(Payment payment) {
        return paymentMapper.create(payment);
    }

    @Override
    public Payment getSerialById(Long id) {
        return paymentMapper.getSerialById(id);
    }
}
